package com.micro.dto;

import java.math.BigDecimal;

import com.micro.entity.Hotel;

// 酒店列表展示 DTO
public class HotelDTO {
    private Long hotelId;
    private String hotelName;
    private String hotelAddress;
    private BigDecimal hotelRating;
    private Integer remainingRooms;
    private BigDecimal price;
    private String hotelDetail;

    public HotelDTO() {}

    // 从 Hotel 实体转换的构造方法
    public HotelDTO(Hotel hotel) {
        this.hotelId = hotel.getHotelId();
        this.hotelName = hotel.getHotelName();
        this.hotelAddress = hotel.getHotelAddress();
        this.hotelRating = hotel.getHotelRating();
        this.remainingRooms = hotel.getRemainingRooms();
        this.price = hotel.getPrice();
        this.hotelDetail = hotel.getHotelDetail();
    }

    // Getters and Setters
    public Long getHotelId() {
        return hotelId;
    }

    public void setHotelId(Long hotelId) {
        this.hotelId = hotelId;
    }

    public String getHotelName() {
        return hotelName;
    }

    public void setHotelName(String hotelName) {
        this.hotelName = hotelName;
    }

    public String getHotelAddress() {
        return hotelAddress;
    }

    public void setHotelAddress(String hotelAddress) {
        this.hotelAddress = hotelAddress;
    }

    public BigDecimal getHotelRating() {
        return hotelRating;
    }

    public void setHotelRating(BigDecimal hotelRating) {
        this.hotelRating = hotelRating;
    }

    public Integer getRemainingRooms() {
        return remainingRooms;
    }

    public void setRemainingRooms(Integer remainingRooms) {
        this.remainingRooms = remainingRooms;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getHotelDetail() {
        return hotelDetail;
    }

    public void setHotelDetail(String hotelDetail) {
        this.hotelDetail = hotelDetail;
    }
}